//
// Created by Administrator on 2024/5/12.
// 高精度/低精度
//https://oj.czos.cn/p/1604 pass


#include <iostream>

using namespace std;

int main()
{
    // a/b
    string a; // 被除数dividend
    int b;  // 除数divider
    a="1325",b=13; //101
    a="175",b=5; //35
    a="29533544",b=999; //29563
//    a="0",b=1000;
//    cin>>a>>b;
    if (a=="0")
    {
        cout<<0;
        return 0;
    }
    int cur = 0;
    string ret;
    for (int i = 0; i < a.size(); ++i)
    {
        cur = cur * 10 + a[i] - '0';
        int t = cur/b;
        ret+=(t+'0');
        cur -= (b*t);
    }
//    cout<<ret<<endl;
//    cout<<stoi(a)/b<<endl;
    // 打印商, 去除前边的零
    bool zero=ret[0]=='0';
    for (int i = 0; i < ret.size(); ++i)
    {
        if(ret[i]=='0' && zero)
            continue;
        if(ret[i]!='0')
            zero=false;
        cout<<ret[i];
    }
    return 0;
}